$(document).ready(function() {
  
  $(function(){
    $("a:first", ".menuv li.submenu", ".menuh li.submenu").addClass("seta");
    $(".menuv li.submenu, .menuh li.subv").each(function(){
      var el = $('#' + $(this).attr('id') + ' ul:eq(0)');
      $(this).hover(function(){
        el.show();
      },
      function(){
        el.hide();
      });
    });
  });
  
  //jscript do menu de cadastro de consumidor
  $(".tab_content").hide(); //Hide all content
  $("ul.tabs li:first").addClass("active").show(); //Activate first tab
  $(".tab_content:first").show(); //Show first tab content
  
  //On Click Event
$("ul.tabs li").click(function() {
  
  $("ul.tabs li").removeClass("active"); //Remove any "active" class
  $(this).addClass("active"); //Add "active" class to selected tab
  $(".tab_content").hide(); //Hide all tab content
  
  var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
  $(activeTab).fadeIn(); //Fade in the active content
  
  var tipoClipping = pegarValor(document.getElementById('tipoClipping').value); 
  var html = "";
      html += "<table border='1'>";
        html += "<thead>";
          html += "<tr>";
            html += "<th>"+tipoClipping+"</th>";
            html += "<th>wqfwqfwqfqwfwfwqfqwffqwfqw</th>";
          html += "</tr>";
        html += "</thead>";
        html += "<tbody>";
          html += "<tr>";
            html += "<td>qwfqwfwqfqwfqw</td>";
            html += "<td>qwfqwfqwfwqfwq</td>";
          html += "</tr>";
          html += "<tr>";
            html += "<td>wfqwfwqfqwfqfqwf</td>";
            html += "<td>qwfqwfqwfqwfq</td>";
          html += "</tr>";
        html += "</tbody>";
      html += "</table>";
      $('#informacoesClipping').html(html);
  return false;  
});

});

function pegarValor(valor){ 
  var nome = valor.split(',');
  return nome[1];
}


